//
//  HelpViewController.m
//
//  Created by Christian Küpper on 01.06.10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "HelpViewController.h"

@implementation HelpViewController

@synthesize delegate;

- (IBAction)dismissHelp:(UIButton *)sender {
	
	[delegate didDismissHelpView];
    
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
	return YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
	
	NSURL *helpURL = [NSURL fileURLWithPath:[[NSBundle mainBundle]
										   pathForResource:@"help" ofType:@"html"]];
	NSURLRequest *requestURL = [NSURLRequest requestWithURL:helpURL];
	[webView loadRequest:requestURL];
	
	self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] 
											   initWithBarButtonSystemItem:UIBarButtonSystemItemDone 
											   target:self 
											   action:@selector(dismissHelp:)] autorelease];

	
}

@end
